package com.jy.adscm.operation.hscrb.service.impl;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.jy.adscm.operation.hscrb.bean.SdHydropowerdetial;
import com.jy.adscm.operation.hscrb.mapper.mysql.SdHydropowerdetialMapper;
import com.jy.adscm.operation.hscrb.service.SdHydropowerdetialService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zyl
 * @since 2018-12-18
 */
@Service
public class SdHydropowerdetialServiceImpl extends ServiceImpl<SdHydropowerdetialMapper, SdHydropowerdetial> implements SdHydropowerdetialService {

    @Override
    public Boolean updateSdHydropowerdetial(SdHydropowerdetial sdHydropowerdetial) {
        boolean result = super.updateById(sdHydropowerdetial);
        return result;
    }

    @Override
    public List<SdHydropowerdetial> selectByTid(String tid) {
        Wrapper<SdHydropowerdetial> wrapper =new EntityWrapper<>();
        wrapper.eq("TID",tid);
        List<SdHydropowerdetial> sdHydropowerdetials = super.selectList(wrapper);
        return sdHydropowerdetials;
    }
}
